/*
package com.aaa.come.controller;


import com.aaa.come.entity.Pick;
import com.aaa.come.service.PickService;
import com.aaa.vo.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

*/
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author aaa
 * @since 2020-11-24
 *//*

@RestController
@RequestMapping("/come/pick")
@Api(description = "拣货管理")
public class PickController2 {

    @Autowired
    private PickService pickService;

    @PostMapping("findPagePick/{page}/{size}")
    @ApiOperation(value = "分页查询拣货管理数据")
    public R  findPagePick(@ApiParam("页数") @PathVariable Integer page,
                           @ApiParam("一页几条数据") @PathVariable Integer size,
                           @ApiParam("查询条件封装类") @RequestBody Pick pick){
        try{
            Page<Pick> pageinfo=pickService.findPagePick(page,size,pick);
            return R.ok().data("date",pageinfo);
        }catch (Exception e){
            e.printStackTrace();
            return R.error().message("查询失败");
        }
    }

    @PostMapping("insertPick")
    @ApiOperation(value = "拣货之后的拣货管理数据新增")
    public R insertPick(@RequestBody Pick pick){
        if (pickService.save(pick)){
            return R.ok().message("拣货成功");
        }else{
            return R.error().message("拣货失败");
        }

    }




}

*/
